package demo_0416.homework;

import java.io.Serializable;

public class BankAccount implements Serializable {
    private int id;
    private String firstname;
    private String lastname;
    private double balance;

    public BankAccount(int id, String firstname, String lastname, double balance) {
        this.id = id;
        this.firstname = firstname;
        this.lastname = lastname;
        this.balance = balance;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getFirstName() {
        return firstname;
    }

    public void setFirstName(String firstname) {
        this.firstname = firstname;
    }

    public String getLastName() {
        return lastname;
    }

    public void setLastName(String lastname) {
        this.lastname = lastname;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }
}
